package com.lagou.io;

import java.io.InputStream;

/**
 * @author: liufh
 * @create: 2021-06-27 21:05
 **/
public class Resources {

    public static InputStream getResourceAsStream(String path){
        //加载配置文件：根据配置文件路径，将配置文件加载成字节输入流，存储在内存中
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }

}
